package jplat.base.user.impl;


import java.util.List;

import ebcs.scan.bean.sys.SysUserInfor;
import jplat.base.user.IUserInfoGetters;
import jplat.core.trans.JAppContext;
import jplat.error.exception.JSystemException;

public class JUserInfoGettersSession implements IUserInfoGetters
{
	/**
	 * 通过会话获取用户信息.
	 * @author zhangcq
	 * @date Nov 29, 2016
	 * @comment 
	 * @param token
	 * @param sysCode
	 * @return
	 * @throws JSystemException 
	 */
	
	public SysUserInfor getUserInfo( JAppContext context ) throws JSystemException
	{
		return (SysUserInfor)context.getSession().getUserInfo();
	}
	public List<SysUserInfor> getAllLoginUserInfor( JAppContext context ) throws JSystemException
	{
		return  context.getSession().getAllLoginUserInfor();
	}
}
